from datetime import date

d1 = date(2010, 9, 28)
print(d1)  # 输出：2010-09-28